$def with(count, year, start_year, this_year)
<!DOCTYPE html>
$:render.header()

        <div class="container bs-docs-container">
            <div class="row">
                <div align="center">
                    <ul class="pagination">
                        $if year == start_year:
                            <li class="disabled"><span>&laquo;</span></li>
                        $else:
                            <li><a href="/statistics/$int(year-1)">&laquo;</a></li>
                        $for y in range(start_year, int(this_year)+1):
                            $if y == year:
                                <li class="active"><span>$y<span class="sr-only">(current)</span></span></a></li>
                            $else:
                                <li><a href="/statistics/$y">$y</a></li>
                        $if year == this_year:
                            <li class="disabled"><span>&raquo;</span></li>
                        $else:
                            <li><a href="/statistics/$int(year+1)">&raquo;</a></li>
                    </ul>
                </div>
                <table class="table table-bordered table-hover tablesorter table-striped" id="staticsticsyeartable">
                    <thead>
                        <tr>
                            <th>姓名</th>
                            $for m in range(1, 13):
                                <th>$m月</th>
                            <th>合计</th>
                        </tr>
                    </thead>
                    <tbody>
                        $for cnt in count:
                            <tr>
                            <td><a href="http://poj.org/userstatus?user_id=$cnt[-1]" target="_blank">$cnt[0]</a></td>
                            $for c in cnt[1:-1]:
                                <td>$c</td>
                            </tr>
                    </tbody>
                </table>
            </div>
        </div>

$:render.footer()
